package com.tcm.content.dao.mapper;


import com.tcm.content.entity.Panel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PanelMapper {

    Panel findPanelByType(@Param("type") Integer type, @Param("position") Integer position);

    int delete(Long id);

    int insert(Panel record);

    List<Panel> listPanelByPosition(Integer position);

    List<Panel> listPanelPage(@Param("offset") Long offset, @Param("pagesize") Long pagesize);

    Panel findById(Long id);

    int update(Panel record);
}